<?php
Yii::import('model.App');
class NavMenu extends CWidget
{
	public function run() {
		$user_info = UserInfo::getInstance()->getUserInfo($_SESSION['uid']);
		$data['apps'] = App::getInstance()->getAppByMenuIds($user_info['group_role']);
        $this->render('nav',$data);        
    }
}

